package com.jgdt.tools.decrypt.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <p>
 * 留一个给使用者自已配置密钥的入口
 * </p>
 *
 * @author chang.zhou
 * @version $
 * @date Created in 2021/6/3 13:54
 */
@ConfigurationProperties(prefix = "spring.encrypt")
public class EncryptProperties {
    // key 一定要是 16位长度的
    private static final String DEFAULT_KEY = "encrypt.decrypt$";
    private String key = DEFAULT_KEY;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
